#!/bin/bash
pacman -U --noconfirm adduser-1.17-1-any.pkg.tar.xz
useradd -r -s /usr/bin/nologin mongodb
mkdir -p /var/lib/mongodb
chown -R mongodb:mongodb /var/lib/mongodb
mkdir -p /var/log/mongodb
chown -R mongodb:mongodb /var/log/mongodb
pacman -U --noconfirm mongodb-org-tools-4.2.0-1-aarch64.pkg.tar.xz
pacman -U --noconfirm mongodb-org-shell-4.2.0-1-aarch64.pkg.tar.xz
pacman -U --noconfirm mongodb-org-server-4.2.0-1-aarch64.pkg.tar.xz